package service;

import dao.EmployDaoImpl;
import dao.EmployInterface;
import entity.Employ;

public class EmployServiceImpl implements EmployService  {
    EmployInterface employInterface;
    public EmployServiceImpl(){
        employInterface=new EmployDaoImpl();
    }
    @Override
    public void show() {
        employInterface.show();

    }

    @Override
    public void showByID(int ID) {
        employInterface.showByID(ID);

    }

    @Override
    public boolean addEmp(Employ employ) {
        employInterface.addEmp(employ);
        return true;
    }

    @Override
    public boolean deleteEmp(int ID) {
        employInterface.deleteEmp(ID);
        return true;
    }

    @Override
    public boolean updateEmp(Employ employ) {
        employInterface.updateEmp(employ);
        return true;
    }
}
